<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Login Form</title>
  <link rel="stylesheet" href="<?php echo __PUBLIC__?>Admin/css/style.css">
  <!--<link rel="stylesheet" href="__PUBLIC__admin/css/style.css">-->
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>

  <section class="container">
    <div class="login">
      <h1>用户登录</h1>
      <form method="post" action="index.php?m=admin&c=login&a=login" onsubmit="return is_not_submit();">
        <p><input type="text" name="name" value="<?php echo $this->loginName;?>" placeholder="用户名"></p>
        <p><input type="password" name="password" value="<?php echo $this->loginPass?>" placeholder="密码"></p>
		<p><input type="text" name="verification" id="code" value="" placeholder="验证码"></p>
		<p class="codeimg" >
			<img src="index.php?m=admin&c=login&a=verify" onclick="this.src='index.php?m=admin&c=login&a=verify&'+Math.random()" style="margin-top: -4px;"/>
		</p>
        <p class="remember_me">
          <label>
            <input type="checkbox" name="remember_me" id="remember_me" checked="checked">
            记住密码
          </label>
        </p>
        <p class="submit"><input type="submit" name="commit" value="登录"></p>
      </form>
    </div>
  </section>
</body>
</html>
<script>
function is_not_submit(){
	var login = document.getElementsByName('name')[0];
	if(login.value == ''){
		login.focus();
		return false;
	}
	var password = document.getElementsByName('password')[0];
	if(password.value == ''){
		password.focus();
		return false;
	}
	var verification = document.getElementsByName('verification')[0];
	if(verification.value == ''){
		verification.focus();
		return false;
	}
}
</script>